package com.boot.springboot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
//前端控制器
@Controller
public class IndexController {
    //跳转登录页
    @GetMapping("/index")
    public String index(){
        return "ems/login";
    }
    //跳转注册页
    @GetMapping("/toRegister")
    public String toRegister(){
        return "ems/regist";
    }
    //跳转添加页
    @GetMapping("/toSave")
    public String toSave(){
        return "ems/addEmp";
    }

}
